package com.itlong.cloud.iottp;

import com.itlong.cloud.POJO.VO.sdk.CloudControllerButtonStatusVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <desc>
 *      SDK对接iot接口
 * <desc/>
 *
 * @createDate 2020/08/05
 */
@FeignClient(name = "iot-tp-service")
public interface IIotSDKServiceClient {

    /**
     * <desc>
     *      获取按键状态
     * <desc/>
     *
     * @param deviceId
     * @return
     * @author caoshuai
     * @createDate 2020/08/05
     */
    @RequestMapping(path = "/iot/sdk/getButtonStatus",method = RequestMethod.POST)
    CloudControllerButtonStatusVO getButtonStatus(@RequestParam("deviceId") String deviceId);
}
